package com.itheima.health.xxl;

import com.itheima.health.service.SetmealService;
import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.IJobHandler;
import com.xxl.job.core.handler.annotation.JobHandler;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;


@JobHandler(value = "heima.setmeal.clean.img.job")
@Component
public class ClearImgJob extends IJobHandler {


    @Resource
    SetmealService setmealService;

    @Override
    public ReturnT<String> execute(String s) throws Exception {
        setmealService.clearImg();  // 调用 图片清理服务实现。。。。。。
        return SUCCESS;
    }



}
